/*
 * @(#)FirstServlet.java 2013-1-30 下午9:16:01 order_jsp_servlet Copyright 2013
 * Thuisoft, Inc. All rights reserved. THUNISOFT PROPRIETARY/CONFIDENTIAL. Use
 * is subject to license terms.
 */
package com.thunisoft.order.login;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;

import com.thunisoft.order.service.IUserService;

/**
 * FirstServlet
 * 
 * @author ice
 * @version 1.0
 * 
 */
public class FirstServlet extends HttpServlet {
    /**
     * 序列版本ID
     */
    private static final long serialVersionUID = -5256754865892984789L;

    /**
     * 用户Service
     */
    @Autowired
    private IUserService userService;

    @Override
    protected void doGet(HttpServletRequest request,
            HttpServletResponse response) throws ServletException, IOException {
        super.doPost(request, response);
    }

    @Override
    protected void doPost(HttpServletRequest request,
            HttpServletResponse response) throws ServletException, IOException {
        String sUsername = request.getParameter("username");
        String sPassword = request.getParameter("password");
        System.out.println(sUsername + "______" + sPassword);
    }

}
